import UIKit

//
@available(iOS, introduced: 3.0, deprecated: 8.0, message: "UISearchDisplayController has been replaced with UISearchController")
extension QKC where AA :UISearchDisplayController {
     open func delegate_qk_s(_ delegate:  UISearchDisplayDelegate?) -> QKC<AA,YY,ZZ, UISearchDisplayDelegate?>{
		return link(next: delegate).then_QK { $0.value.delegate = delegate }
	}
     open func delegate_qk_g() -> QKC<AA,YY,ZZ, UISearchDisplayDelegate?>{
		 self +^ self.value.delegate
	}

		// configure the view controller for searching. default is NO. animated is NO
    open func isActive_qk_s(_ isActive:  Bool ) -> QKC<AA,YY,ZZ, Bool >{
		return link(next: isActive).then_QK { $0.value.isActive = isActive }
	}
    open func isActive_qk_g() -> QKC<AA,YY,ZZ, Bool >{
		 self +^ self.value.isActive
	}

    open func searchBar_qk_g() -> QKC<AA,YY,ZZ, UISearchBar >{
		 self +^ self.value.searchBar
	}

		// the view we are searching (often a UITableViewController)
    open func searchContentsController_qk_g() -> QKC<AA,YY,ZZ, UIViewController >{
		 self +^ self.value.searchContentsController
	}

		// will return non-nil. create if requested
    open func searchResultsTableView_qk_g() -> QKC<AA,YY,ZZ, UITableView >{
		 self +^ self.value.searchResultsTableView
	}

		// default is nil. delegate can provide
     open func searchResultsDataSource_qk_s(_ searchResultsDataSource:  UITableViewDataSource? ) -> QKC<AA,YY,ZZ, UITableViewDataSource? >{
		return link(next: searchResultsDataSource).then_QK { $0.value.searchResultsDataSource = searchResultsDataSource }
	}
     open func searchResultsDataSource_qk_g() -> QKC<AA,YY,ZZ, UITableViewDataSource? >{
		 self +^ self.value.searchResultsDataSource
	}

		// default is nil. delegate can provide
     open func searchResultsDelegate_qk_s(_ searchResultsDelegate:  UITableViewDelegate? ) -> QKC<AA,YY,ZZ, UITableViewDelegate? >{
		return link(next: searchResultsDelegate).then_QK { $0.value.searchResultsDelegate = searchResultsDelegate }
	}
     open func searchResultsDelegate_qk_g() -> QKC<AA,YY,ZZ, UITableViewDelegate? >{
		 self +^ self.value.searchResultsDelegate
	}

		// default is nil. If nil, the controller uses the default title string
    @available(iOS 5.0, *)
    open func searchResultsTitle_qk_s(_ searchResultsTitle:  String? ) -> QKC<AA,YY,ZZ, String? >{
		return link(next: searchResultsTitle).then_QK { $0.value.searchResultsTitle = searchResultsTitle }
	}
    @available(iOS 5.0, *)
    open func searchResultsTitle_qk_g() -> QKC<AA,YY,ZZ, String? >{
		 self +^ self.value.searchResultsTitle
	}

    @available(iOS 7.0, *)
    open func displaysSearchBarInNavigationBar_qk_s(_ displaysSearchBarInNavigationBar:  Bool) -> QKC<AA,YY,ZZ, Bool>{
		return link(next: displaysSearchBarInNavigationBar).then_QK { $0.value.displaysSearchBarInNavigationBar = displaysSearchBarInNavigationBar }
	}
    @available(iOS 7.0, *)
    open func displaysSearchBarInNavigationBar_qk_g() -> QKC<AA,YY,ZZ, Bool>{
		 self +^ self.value.displaysSearchBarInNavigationBar
	}

    @available(iOS 7.0, *)
    open func navigationItem_qk_g() -> QKC<AA,YY,ZZ, UINavigationItem? >{
		 self +^ self.value.navigationItem
	}

		// animate the view controller for searching
    open func setActive_qk_f(_ visible: Bool, animated: Bool) -> QKC<AA,YY,ZZ, Bool>{
		 self +^ self.value.setActive(visible, animated:animated) +^ visible
	}

}

